import os

poem_win = "床前明月光，\r\n疑是地上霜。\r\n举头望明月，\r\n低头思故乡。\r\n"
poem_mac = "床前明月光，\r疑是地上霜。\r举头望明月，\r低头思故乡。\r"
poem_linux = "床前明月光，\n疑是地上霜。\n举头望明月，\n低头思故乡。\n"

with open(os.path.join("str", "poem_from_win.txt"), mode="w", encoding="utf-8") as f:
    f.write(poem_win)

with open(os.path.join("str", "poem_from_mac.txt"), mode="w", encoding="utf-8") as f:
    f.write(poem_mac)

with open(os.path.join("str", "poem_from_linux.txt"), mode="w", encoding="utf-8") as f:
    f.write(poem_linux)
